import {axios} from '@/script/axios.js'
// 用户余额
export function getUserBalance() {
  return axios({
    url: `/wx/user/userBalance`,
    method: 'get'
  })
}

// 资金记录
export function getLogList(data) {
  return axios({
    url: `/wx/user/capitalLogList`,
    method: 'get',
		data
  })
}

// 添加银行卡
export function addBankCard(data) {
  return axios({
    url: `/wx/user/add`,
    method: 'post',
		data
  })
}

// 修改银行卡
export function editBankCard(data) {
  return axios({
    url: `/wx/user/edit`,
    method: 'post',
		data
  })
}

// 用户银行卡列表
export function getBankCardList(data) {
  return axios({
    url: `/wx/user/userBankList`,
    method: 'get'
  })
}

// 提现
export function withdrawal(data) {
  return axios({
    url: `/wx/user/withdrawal`,
    method: 'post',
		data
  })
}


// 获取用户账户详情
export function getUserBankInfo() {
  return axios({
    url: `/wx/user/getUserBankInfo`,
    method: 'get'
  })
}




// 计算手续费
export function withdrawalServiceCharge(data) {
  return axios({
    url: `/wx/user/withdrawalServiceCharge`,
    method: 'get',
		data
  })
}